feat(backend): add local auth foundation#559
Conversation
|
Someone is attempting to deploy a commit to the Prashantkumar Khatri's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @amritbej, Thanks for opening this pull request. This PR has been automatically classified based on the files modified. Applied Labels
Primary Review Area
Reviewer@Harxhit has been identified as the primary reviewer for this pull request. If you have any questions regarding the affected area or implementation details, feel free to reach out to the assigned reviewer. Thank you for your contribution! |
CI — All Checks PassedBackend — PASS
Mobile — SKIP
Web — SKIP
Last updated: |
|
@Harxhit , |
|
@amritbej Thank you for taking the time to work on this PR. After reviewing the implementation and the current state of the project, I realized that the issue itself was outdated and no longer reflects the current codebase. Most of the functionality described in the issue has already been implemented, which means this work is unfortunately not something we can merge. I apologize for the oversight on my side and for the time you spent working on it. I'll be closing this PR along with the related issue to avoid further confusion for contributors. Thank you again for your contribution and understanding. |
Summary
Adds a backend-only foundation for local user authentication, including user password storage, register/login APIs, secure password hashing, validation, tests, and API documentation. This intentionally excludes frontend, QR sharing, dashboards, and public profile UI so the PR stays aligned with maintainer guidance.
Closes #117
Type of Change
What Changed
password_hashsupport to the existinguserstable via Prisma schema and migration.POST /auth/registerandPOST /auth/loginin the backend auth routes.scryptpassword hashing/verification utility.How to Test
Run backend typecheck:
cd apps/backend npm run typecheckRun the focused auth tests:
npm run test -- src/__tests__/auth-local.test.tsOptional full backend test run:
npm run testNote: the new auth tests pass. The full suite currently has unrelated existing failures in analytics/event/team tests.
Checklist
pnpm -r run lintpasses).pnpm -r run typecheck).pnpm -r run test).console.logor debug statements left in the code.Screenshots / Recordings
Not applicable. This is a backend-only PR.
Additional Context
This PR is intentionally limited to backend authentication groundwork for future profile-sharing features. It does not include frontend pages, React components, QR code generation, profile dashboards, or public profile pages.